package com.itany.corejava.code07_面向对象.继承;

/**
 * @author 石小俊
 * 2024年07月15日 15:46
 */
public class Man extends Person {

    private double salary;

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public void work() {
        System.out.println("男人需要负责赚钱养家,每个月薪水:" + salary);
    }

}
